﻿#ifndef FORMPRINTERPACK_H
#define FORMPRINTERPACK_H
#include "myrowdelegate.h"

#include <QProcess>
#include <QStandardItemModel>
#include <QWidget>

namespace Ui {
class FormPrinterPack;
}
class FormPrinter;
/* 外箱打印界面 */
class FormPrinterPack : public QWidget
{
    Q_OBJECT

public:
    explicit FormPrinterPack(FormPrinter *parent);
    ~FormPrinterPack();
public:
    void on_combobox_change(QString str);
    int ExportData(bool isSaveLog=0);

protected:
    void keyPressEvent(QKeyEvent *event) override;
private slots:
    void on_pushButton_2_clicked();
    void on_pushButton_clicked();
    void on_spinBox_valueChanged(int arg1);
    void on_tableViewCustomContextMenuRequested(const QPoint &pos);

    void on_spinBox_2_textChanged(const QString &arg1);

    void on_checkBox_3_clicked(bool checked);

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_checkBox_4_toggled(bool checked);

    void on_spinBox_3_valueChanged(int arg1);

private:
    Ui::FormPrinterPack *ui;
    FormPrinter *formPrinter;
    QStandardItemModel *standItemModel;
    MyRowDelegate *delegate;
    QChar delimiter=QChar(0x0D);
    QString combo_sub;
};

#endif // FORMPRINTERPACK_H
